<?php
/**
 * Created by PhpStorm.
 * User: zz
 * Date: 2018/6/6
 * Time: 22:38
 */
$myfile = fopen("src.gif", "w") or die("Unable to open file!");
move_uploaded_file($_FILES["file"]["tmp_name"],
    "src.gif");